import type { Dayjs } from 'dayjs';

import type { PageParam, TenantModel } from './base_beans';

/** 用户信息 */
interface SysRoleBase extends TenantModel {
  role_id?: string;
  role_name?: string;
  role_code?: string;
  data_scope?: number;
  custom_dept_ids?: string[];
  custom_user_ids?: string[];
}

interface SysRoleReq extends SysRoleBase, PageParam {
  create_time_range?: [Dayjs, Dayjs] | [string, string] | undefined;
  update_time_range?: [Dayjs, Dayjs] | [string, string] | undefined;
}

interface SysRoleResp extends SysRoleBase {
  menu_ids?: Array<string>;
}

export type { SysRoleBase, SysRoleReq, SysRoleResp };
